package com.nulldev.util.web.dns.server.server.engine;

import com.nulldev.util.web.dns.server.server.DNSPayload;
import com.nulldev.util.web.dns.server.server.resolver.DNSResolver;

public interface ResolverRule {
	/**
     * Is this resolver valid for this DNS payload?
     * @param payload Socket address and binary DNS data
     * @return
     */
    public boolean isValid(DNSPayload payload);

    /**
     * Gets the DNSResolver associated with this rule.
     * @return Question resolver
     */
    public DNSResolver getResolver();
}
